﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SimilarTextWebCrawlerWCFService.aspx.cs" Inherits="SimilarTextWebCrawlerWCFService" %>

<!DOCTYPE html>
<html>
<head id="Head1" runat="server">
    <title></title>
    <style type="text/css">
        .auto-style2 {
            height: 82px;
        }
        .auto-style3 {
            width: 285px;
        }
        .auto-style4 {
            width: 239px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <h1>Similar Text Web Crawler WCF Service</h1>
        <table style="width: 100%;" border="1">
            <tr>
                <td><b>Service Description</b></td>
                <td>The Similar Text Web Crawler WCF Service takes a <i>Uri</i> location of a web page
                    and <i>crawls</i> that page and all connected pages looking for words that are similar
                    to the passed in word. The depth of crawling is limited to the 10 regardless of what 
                    is specified due to the risk of stack overflow. The pages are searched for related
                    and similar words. 
                </td>
            </tr>
            <tr>
                <td><b>Service URL</b></td>
                <td><a href="http://10.0.2.143/SimilarTextWebCrawlerWCFService/SimilarTextWebCrawlerWCFService.svc">http://10.0.2.143/SimilarTextWebCrawlerWCFService/SimilarTextWebCrawlerWCFService.svc</a></td>
            </tr>
            <tr>
                <td><b>WSDL URL</b></td>
                <td><a href="http://10.0.2.143/SimilarTextWebCrawlerWCFService/SimilarTextWebCrawlerWCFService.svc?singleWsdl">http://10.0.2.143/SimilarTextWebCrawlerWCFService/SimilarTextWebCrawlerWCFService.svc?singleWsdl</a></td>
            </tr>
            <tr>
                <td class="auto-style2"><b>Methods</b></td>
                <td class="auto-style2">Method List. Format: <i>return type :: MethodName(parameter(s))</i>
                    <ul>
                        <li>string[]::GetSimilarWords(Uri page, string word, int depth)</li>
                    </ul>
                </td>
            </tr>
        </table>
        <h2>Service Test</h2>
        <table border="0" width="400">
            <tr>
                <td align="right">Word:&nbsp;</td>
                <td class="auto-style3">
                    <asp:TextBox ID="similarWordTextBox" runat="server" Width="150px"></asp:TextBox></td>
                <td rowspan="3" class="auto-style4">
                    <asp:Button ID="submitButton" runat="server" Text="Submit" OnClick="submitButton_Click" Width="69px" /></td>
            </tr>
            <tr>
                <td align="right">URL:&nbsp;</td>
                <td class="auto-style3">
                    <asp:TextBox ID="urlTextBox" runat="server" Width="356px"></asp:TextBox></td>
            </tr>
            <tr>
                <td align="right">Depth:&nbsp;</td>
                <td class="auto-style3">
                    <asp:TextBox ID="depthTextBox" runat="server" Width="45px"></asp:TextBox></td>
            </tr>
        </table>
        <p id="output" runat="server">
            Similar Words:&nbsp;&nbsp;
            <asp:Label ID="similarWordsLabel" runat="server" Text=""></asp:Label>
        </p>
    </form>
</body>
</html>
